﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Module_LimitManager.ascx.cs" Inherits="Modules_Module_LimitManager" %>
<asp:GridView ID="GridView_LM" runat="server" AutoGenerateColumns="False" 
    onrowcancelingedit="GridView_LM_RowCancelingEdit" 
    onrowdeleting="GridView_LM_RowDeleting" onrowediting="GridView_LM_RowEditing" 
    onrowupdating="GridView_LM_RowUpdating">
    <Columns>
        <asp:TemplateField HeaderText="序号">
        <ItemTemplate>
         <%# Container.DataItemIndex + 1%> 
         </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField HeaderText="权限名" DataField="limitname" />
        <asp:TemplateField HeaderText="用户管理权限" ControlStyle-BorderStyle="NotSet">
        <ItemTemplate>
        <asp:CheckBox ID="UserManagerLM" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"usermgr").ToString()=="1"?true:false %>' Enabled="false" />
        </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="论坛管理权限">
        <ItemTemplate>
        <asp:CheckBox ID="BBSManagerLM" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"bbsmgr").ToString()=="1"?true:false %>' Enabled="false" />
        </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="新闻管理权限">
        <ItemTemplate>
        <asp:CheckBox ID="NewsManagerLM" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"newsmgr").ToString()=="1"?true:false %>' Enabled="false" />
        </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="资源管理权限">
        <ItemTemplate>
        <asp:CheckBox ID="SourceManagerLM" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"sourcemgr").ToString()=="1"?true:false %>' Enabled="false" />
        </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="上传权限">
         <ItemTemplate>
        <asp:CheckBox ID="UploadManagerLM" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"upload").ToString()=="1"?true:false %>' Enabled="false" />
        </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="下载权限">
         <ItemTemplate>
        <asp:CheckBox ID="DownloadManagerLM" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"download").ToString()=="1"?true:false %>' Enabled="false" />
        </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="资源评论权限">
        <ItemTemplate>
        <asp:CheckBox ID="SCManagerLM" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"srccommentmgr").ToString()=="1"?true:false %>' Enabled="false" />
        </ItemTemplate>
        </asp:TemplateField>
        <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
        <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
    </Columns>
</asp:GridView>
